﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using DevExpress.UserSkins;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraBars.Helpers;


namespace QLNS_GiaoDien
{
    public partial class Form1 : RibbonForm
    {
        public Form1()
        {
            InitializeComponent();
            InitSkinGallery();
           

        }
        void InitSkinGallery()
        {
            SkinHelper.InitSkinGallery(rgbiSkins, true);
        }

        private void iExit_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (MessageBox.Show("Bạn có chắc chắn muốn thoát chương trình không?", "Thông Báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            {
                Application.Exit();
            }
        }

        private void bbi_Quyen_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_Quyen f = new uc_Quyen();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_PhongBan_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_PHONGBAN f = new uc_PHONGBAN();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_ChucVu_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_ChucVu f = new uc_ChucVu();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_NhanVien_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_NhanVien f = new uc_NhanVien();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_TrinhDoHV_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_TRINHDOHOCVAN f = new uc_TRINHDOHOCVAN();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_BaoHiem_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_BaoHiem f = new uc_BaoHiem();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_KyLuat_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_KYLUAT f = new uc_KYLUAT();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_ThaiSan_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_THAISAN f = new uc_THAISAN();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_KhenThuong_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_KHENTHUONG f = new uc_KHENTHUONG();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_BacLuong_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_BacLuong f = new uc_BacLuong();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_ChamCong_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_ChamCong f = new uc_ChamCong();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_LuongNhanVien_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_LUONG f = new uc_LUONG();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_DangNhap_ItemClick(object sender, ItemClickEventArgs e)
        {
            frm_DangNhap f = new frm_DangNhap();
            f.ShowDialog();
        }

        private void bbi_DoiMatKhau_ItemClick(object sender, ItemClickEventArgs e)
        {
            frm_DoiMatKhau f = new frm_DoiMatKhau();
            f.ShowDialog();
        }

        private void bbi_DangXuat_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (MessageBox.Show("Bạn có muốn đăng xuất khỏi chương trình không?", "Thông Báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            {
                bbi_DangXuat.Enabled = false;
                bbi_DangNhap.Enabled = true;
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //bbi_DangXuat.Enabled = false;
            //bbi_DangNhap.Enabled = true;
        }

        private void bbi_ThongKeNhanVien_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_ThongKeDanhSachNhanVien f = new uc_ThongKeDanhSachNhanVien();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_TimKiemNhanVien_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_TimKiemNhanVien f = new uc_TimKiemNhanVien();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }

        private void bbi_TìmKiemLuong_ItemClick(object sender, ItemClickEventArgs e)
        {
            uc_TimKiemLuongNhanVien f = new uc_TimKiemLuongNhanVien();
            panelControl1.Controls.Clear();
            panelControl1.Controls.Add(f);
            f.Dock = DockStyle.Fill;
        }


 
     

    }
}